<!--
 * @Author: ChengNan 1429323234@qq.com
 * @Date: 2024-09-05 13:20:22
 * @LastEditors: ChengNan 1429323234@qq.com
 * @LastEditTime: 2024-09-05 13:26:08
 * @FilePath: /src/views/0.web-front/7天入门/10.css2D变形.html
 * @Description: 
-->
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    div {
      width: 200px;
      height: 200px;
    }
    .box1 {
      background-color: #f4aa16;
      transform: translate(100px, 100px);
    }
    .box2 {
      background-color: #f4aa16;
      transform: translate(150px, 100px);
    }
  </style>
</head>
<body>
  <div class="box1"></div>
  <hr>
  <div class="box2"></div>
  <hr>
</body>
</html>